import sys
from PyQt5.QtWidgets import QApplication, QMainWindow

from conparison_excel.conparison_excel_main import CompactApp
from distributor.distributor_main import distributor_main
from main_ui import Ui_MainWindow
import xlrd

from qunar.qunar_main import qunar_main


class MainApp(QMainWindow):
    def __init__(self):
        super().__init__()
        self.ui = Ui_MainWindow()  # 初始化主界面
        self.ui.setupUi(self)

        # 初始化标签页
        self.setup_tabs()

    def setup_tabs(self):
        # 创建 Tab1 并添加到 tabs
        tab1 = distributor_main()
        self.ui.tabWidget.addTab(tab1, "分销商")
        tab2 =  CompactApp()
        self.ui.tabWidget.addTab(tab2, "对比表格")
        tab3 = qunar_main()
        self.ui.tabWidget.addTab(tab3, "去哪儿")



if __name__ == "__main__":
    app = QApplication(sys.argv)
    main_window = MainApp()
    main_window.show()
    sys.exit(app.exec_())
